import React from 'react';
import CommonList from '../../../components/CommonLists/list';
import { Button } from 'antd';

class HitList extends CommonList {
  constructor(props) {
    super(props);
    this.operatorWidth = 80;
    this.detailButton = record => {
      return (
        <Button 
        size='small' 
        type='link'
        disabled={record.audit_status === this.AUDIT._WAIT} 
        onClick={this.showDetail.bind(this, record)}>
          详情
        </Button>
      );
    };
    this.btnGroup = [this.detailButton];
    // this.needOperateColumn = false;
  }

  showDetail = (record) => {
    this.props.showDetail(record);
  }
}

export default HitList;
